using Avalonia;
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Interactivity;
using Avalonia.Markup.Xaml;
using SchoolApp_Material.ViewModels;

namespace SchoolApp_Material.Views;

public partial class MsgBoxView : UserControl
{
    public MsgBoxView()
    {
        InitializeComponent();
        // 附加到可视化树时获取焦点
        this.AttachedToVisualTree += (s, e) => this.Focus();
    }
}